The first library supported is the WideLib code for both 68K and PPC, created from code supplied in _develop_ magazine, issue #26.
This library has been compiled under the following development systems:
- THINK C 68K 7.0.5
- Symantec C for PPC 8.0 Rel. 4
- CodeWarrior 9 (68K and PPC)
- MPW 3.3.1 (MPWC 68K and PPCC PPC)
- MPW 3.4.1 (SC 68K and MrC PPC)
Applications need to include Wide.h in their source and link with the appropriate libraries. The GX version of the WideLib as described in _develop_ is currently NOT supported.
The source code is compatible with pre-Universal Headers, Universal Headers v1.0, Universal Headers v2.x, and Universal Headers v3.0 on the upcoming Mac OS 8 DR1 release.
But some versions of these headers don't come with standard ANSI C includes needed for the test application, so you need you copy the ANSI headers, or change CIncludes/PPCCIncludes (for MPW 3.4.1) to something like :
Set CIncludes "Mac OS 8 Interfaces & Libraries:Interfaces:CIncludes:, {CIncludes}"
Set PPCCIncludes "Mac OS 8 Interfaces & Libraries:Interfaces:CIncludes:, {PPCCIncludes}"
I was unable to build a SYM file for the Symantec for PPC 8.0 Rel. 4 (it requires use of PPCLink/MakePEF/MakeSYM rather than the internal incremental linker), and I had other strange problems with the Symantec environment such as the PPC library being built incorrectly. MPW has one incompatibility with Universal Headers v2.0 - the SCMBuild script attempts to take care of this, but you will probably have to tweak things manually.
To build the THINK/Symantec/CodeWarrior versions, launch the appropriate IDE, open the appropriate project, and either build a library, build an application, or make the project up to date - it should be fairly self-explanatory (note the Options settings for the Symantec projects) - the libraries are output to the "Libs" folder.
To build the MPW versions, enter the following in the Worksheet :
directory <path-to-Int64Lib-folder> # fill in your own pathname here
SCMBuild -help # will tell you the available options
SCMBuild -WideLib # will build the libraries
SCMBuild -TestWide # will build the test application.
By default in the MPW version, symbols are off. To make a SYM/xSYM file, enter the following in the Worksheet :
MakeSYM -i :Sources: TestWide.PPC.MrC.xcoff -sym 3.2 # 3.2 is "old", default is 3.4
There is a bug in the PPC (and FAT if you run on a Power Macintosh) version of the MPW TestWide application in that the SIOW library used doesn't work right - all you see is a blank window. Hit return 3 times, and Quit - the application may crash (and you can just exit to shell if in MacsBug), but the output you want is sent to a file called "stderr" that is created.